package com.ljm.common.util;


import com.ljm.common.excuption.BaseException;

/**
 * 断言
 *
 * @author ming
 */
public class AssertUtil extends org.springframework.util.Assert {
    public static void throwException(Exception e) {
        throw new BaseException(e);
    }

    public static void throwException(String errorKey, String errorMsg) {
        throw new BaseException(errorKey, errorMsg);
    }

    public static void throwException(String errorKey, String errorMsg, Throwable cause) {
        throw new BaseException(errorKey, errorMsg, cause);
    }
}
